using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.UserContrl
{
	public class SendMsgViewCtrl : UserControl
	{
		public static DependencyProperty strTitleProperty = DependencyProperty.Register("strTitle", typeof(string), typeof(SendMsgViewCtrl), new PropertyMetadata(null, new PropertyChangedCallback(SendMsgViewCtrl.strTitlePropertyChanged)));
		public static DependencyProperty strListContentProperty = DependencyProperty.Register("strListContent", typeof(string), typeof(SendMsgViewCtrl), new PropertyMetadata(null, new PropertyChangedCallback(SendMsgViewCtrl.strListContentPropertyChanged)));
		internal Grid LayoutRoot;
		internal TextBlock TitleText;
		internal EmojiTextEx ListText;
		private bool _contentLoaded;
		public string strTitle
		{
			get
			{
				return (string)base.GetValue(SendMsgViewCtrl.strTitleProperty);
			}
			set
			{
				base.SetValue(SendMsgViewCtrl.strTitleProperty, value);
			}
		}
		public string strListContent
		{
			get
			{
				return (string)base.GetValue(SendMsgViewCtrl.strListContentProperty);
			}
			set
			{
				base.SetValue(SendMsgViewCtrl.strListContentProperty, value);
			}
		}
		public SendMsgViewCtrl()
		{
			this.InitializeComponent();
		}
		private static void strTitlePropertyChanged(DependencyObject dependencyObject_0, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs_0)
		{
			if (dependencyPropertyChangedEventArgs_0.get_Property() == SendMsgViewCtrl.strTitleProperty)
			{
				SendMsgViewCtrl sendMsgViewCtrl = dependencyObject_0 as SendMsgViewCtrl;
				sendMsgViewCtrl.TitleText.set_Text(sendMsgViewCtrl.strTitle);
			}
		}
		private static void strListContentPropertyChanged(DependencyObject dependencyObject_0, DependencyPropertyChangedEventArgs dependencyPropertyChangedEventArgs_0)
		{
			if (dependencyPropertyChangedEventArgs_0.get_Property() == SendMsgViewCtrl.strListContentProperty)
			{
				SendMsgViewCtrl sendMsgViewCtrl = dependencyObject_0 as SendMsgViewCtrl;
				sendMsgViewCtrl.ListText.Text = sendMsgViewCtrl.strListContent;
			}
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/Plugin/MassSend/UI/SendMsgViewCtrl.xaml", 2));
			this.LayoutRoot = (Grid)base.FindName("LayoutRoot");
			this.TitleText = (TextBlock)base.FindName("TitleText");
			this.ListText = (EmojiTextEx)base.FindName("ListText");
		}
	}
}
